home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / repair / place.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  553b  |  24 lines

  1. /* Copyright 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
  2.    reiser4progs/COPYING.
  3.    
  4.    repair/place.h -- common structures and methods for place handling. */
  5.  
  6. #ifndef REPAIR_COORD_H
  7. #define REPAIR_COORD_H
  8.  
  9. #include <repair/repair.h>
  10.  
  11. #define repair_place_get_lpos(place, ppos)                    \
  12. {                                        \
  13.     ppos = place->pos;                            \
  14.                                         \
  15.     if (reiser4_item_units(place) == 1 || place->pos.unit == MAX_UINT32) {    \
  16.         ppos.unit = MAX_UINT32 - 1;                    \
  17.         ppos.item--;                            \
  18.     } else {                                \
  19.         ppos.unit--;                            \
  20.     }                                    \
  21. }
  22.  
  23. #endif
  24.